/**
 * 路由守卫（权限）
 */
import router from './index'

// 路由跳转前
router.beforeEach((to, from, next) => {
    next();
})

// 路由跳转后
router.afterEach((to, form) => {
    console.log(`%c ============= [ ${form.fullPath} ] -> [ ${to.fullPath} ]`,  'color:red');
})